package com.javaGame.util;

import javax.swing.*;
import java.awt.*;

/**
 * 排行榜标签类
 */
public class TextLabel extends JLabel {
    public TextLabel(String info,int x,int y,JFrame jf){
        this.setText(info);
        this.setBounds(x,y,300,50);
        this.setForeground(Color.BLUE);
        this.setFont(new Font("宋体",Font.BOLD,30));
        jf.add(this);
    }
}
